-- GENERATED SPELL FOR [Commander Zanneth] --


function spell0_31036(pUnit, Event) --@Cleave,n/a--
pUnit:FullCastSpellOnTarget(15284,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_31036', 577, 1)
end

function Sorts_31036(pUnit, Event)
local choix_sorts_31036 = math.random(0, 0)
if choix_sorts_31036 == 0 then
pUnit:RegisterEvent('spell0_31036', 1, 1)
end
end

function mob31036_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_31036', math.random(1500, 3000), 1)
end

function mob31036_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob31036_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob31036_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(31036, 1, 'mob31036_Action')
RegisterUnitEvent(31036, 2, 'mob31036_Leave')
RegisterUnitEvent(31036, 3, 'mob31036_Kill')
RegisterUnitEvent(31036, 4, 'mob31036_Die')
